

            


            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
     public partial class FinishedExams
     {

            //Write any additional methods or properties here 
            //Don't modify any genrated classes


         RegisteredCourses _objRegisteredCourses = null;

         public RegisteredCourses objRegisteredCourses
         {
             get {

                 if (_objRegisteredCourses == null)
                 {
                     RegisteredCoursesDB objRegisteredCoursesDB = new RegisteredCoursesDB(ConnectionStrings.LMS);
                     List<RegisteredCourses> lstRegisteredCourses = objRegisteredCoursesDB.getRegisteredCoursesByID(RegisteredCoursesID);

                     if (lstRegisteredCourses.Count == 0)
                         return new RegisteredCourses();

                     _objRegisteredCourses = lstRegisteredCourses[0];
                 }

                                
                 
                 
                 return _objRegisteredCourses; }
             
         }

     }
}
